package com.um2.mauction.session.remote;

import java.util.List;

import javax.ejb.Remote;

import com.um2.mauction.entity.Enchere;
import com.um2.mauction.entity.Produit;
import com.um2.mauction.entity.Utilisateur;
import com.um2.mauction.entity.Vente;

@Remote
public interface VenteManagerRemote 
{
	public Vente getVente(int idSale);
	public int addVente(float montantInitial,float montantReserve,String dateDebut,double duree,int etat,Utilisateur seller,Produit item);
	public int addVente(Vente v);
	public void updateVente(int idSale,float montantInitial,float montantReserve,String dateDebut,double duree,int etat,Utilisateur seller,Produit item);
	public void deleteVente(int idSale);
	public List<Vente> getAllVentes();
	public void addEnchereToVente(int idBid,int idSale);
	public Enchere getLastEnchereOfVente(int idSale);
	//public void finaliserVente(int idSale,int idBid);
	public List<Vente> getAllVentesOfCategory(int idCategory);
	public void mergeVente(Vente v);
}
